package com.zsh.console.model;

import com.google.common.base.Objects;


public class Pic extends BaseObject {
    private static final long serialVersionUID = 3832626162173359411L;

    private String id;
    private String picname;
    private String fullPath;
    private String picPackage;//来自哪个zip包
    private boolean needValidate = true;//是否需要二次人工验证
    private String creationDate;//截屏时间，即图片生成的时间
    private String validationDate;//系统验证为 可能作弊 的时间，未启用

    public boolean isNeedValidate() {
        return needValidate;
    }

    public void setNeedValidate(boolean needValidate) {
        this.needValidate = needValidate;
    }

    public String getPicname() {
        return picname;
    }

    public void setPicname(String picname) {
        this.picname = picname;
    }

    public String getCreationDate() {
        return creationDate;
    }

    public void setCreationDate(String creationDate) {
        this.creationDate = creationDate;
    }

    public String getValidationDate() {
        return validationDate;
    }

    public void setValidationDate(String validationDate) {
        this.validationDate = validationDate;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPicPackage() {
        return picPackage;
    }

    public void setPicPackage(String picPackage) {
        this.picPackage = picPackage;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Pic pic = (Pic) o;
        return Objects.equal(picname, pic.picname);
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(picname);
    }

    @Override
    public String toString() {
        return "Pic{" +
            "picname='" + picname + '\'' +
            '}';
    }

    public String getFullPath() {
        return fullPath;
    }

    public void setFullPath(String fullPath) {
        this.fullPath = fullPath;
    }
}
